<?php

	$medias = EbModel::getModel('Media','Media')->selectByFolder($folder);
	
	echo '<ul>';
	
	eb_widget('list',array('dataProvider' => $medias,'itemRenderer' => '<li>$name:<img src="$ma_item_url"/></li>'));
	
	echo '</ul>';